package com.yxw.live_vod_boot.dto.live_comment;

import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class LiveCommentDTO implements Serializable {
    private static final long serialVersionUID = 116247611371L;

    @ApiModelProperty(value = "直播ID", required = true)
    @NotNull(message = "直播ID不能为空")
    private String liveId;

    @ApiModelProperty(value = "评论人ID 店铺回复用户的时候传店铺的shopId", required = true)
    @NotNull(message = "评论人ID不能为空")
    private String userId;

    @ApiModelProperty(value = "评论人名称 店铺回复时传店铺名")
    @NotNull(message = "评论人名称不能为空")
    private String userName;

    @ApiModelProperty(value = "评论人类型 0=店铺 1=用户 2=其他", required = true)
    @NotNull(message = "评论人类型不能为空")
    private Integer userType;

    @ApiModelProperty(value = "@用户ID")
    private String toUserId;

    @ApiModelProperty(value = "被@用户名称")
    private String toUserName;

    @ApiModelProperty(value = "评论内容")
    private String comment;

    @ApiModelProperty(value = "评论类别(1=评论，2=回复)")
    private Integer commentType;

    @ApiModelProperty(value = "发表评论时间")
    private Date commentTime;

    public LiveCommentDTO(String comment) {
        this.comment = comment;
    }
}
